<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>event</title>
</head>
<body>
 <div id="demo">
 	<button type="button" v-on:click="greet">greet</button>
 </div>
</body>
<script src="js/vue.js"></script>
<script type="text/javascript">
	 new Vue({
		el: "#demo",
		data:{
		},
		methods:{
			 greet:function(e){
			 	alert("enter");
			 	console.log(e.target.tagName);
			 }
		}

		
	})
</script>
</html>